﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Task.Logic.Interface;
using App.Service;
using Task.Entity;
using App.Configuration;
using App.Integration; 

namespace Task
{
    public partial class OpenForm : System.Web.UI.Page
    {
        ITask _task = ServiceContainer.GetService<ITask>();
        protected void Page_Load(object sender, EventArgs e)
        {
            string taskID = Request.QueryString["TaskID"];
            string url = _task.GetTaskUrl(taskID, SSOUtil.Context.GetLoginedUser().UserAccount);
            Response.Redirect(url);
        }
    }
}